<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class MY_Controller extends CI_Controller {

	function __construct(){
		parent::__construct();	
		
		if (! preg_match("/index.php\//", $_SERVER['REQUEST_URI'])){
			redirect (base_url());
		}
	}

}